package com.wechat.scheme.exception;

public class BusinessException extends RuntimeException {
    private Integer code;

    private Object data;

    public Integer getCode() {
        return this.code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message,Object data) {
        super(message);
        this.data = data;
    }

    public BusinessException( Integer code,String message) {
        super(message);
        this.code = code;
    }

    public BusinessException( Integer code,String message,Object data) {
        super(message);
        this.code = code;
        this.data = data;
    }


    public BusinessException(Integer code , String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public BusinessException( Integer code,Throwable cause) {
        super(cause);
        this.code = code;
    }
}
